import request from '@/utils/request';


export async function getPredictionData(params) {
  return request('/api/hanfan/prediction/info', {
    method: 'get',
    params
  });
}

export async function getCurrentData(params) {
  return request('/api/hanfan/current/info', {
    method: 'get',
    params
  });
}

export async function getStatisticsData(params) {
  return request('/api/hanfan/statistics/info', {
    method: 'get',
    params: params
  });
}

export async function getCoreDataTrend(params) {
  return request('/api/hanfan/coreData/info', {
    method: 'post',
    data: params
  });
}


export async function getContentChangeData(params) {
  return request('/api/hanfan/contentChange/data', {
    method: 'get',
    params: params
  });
}

export async function getFuelTrackingData(params) {
  return request('/api/hanfan/fuelTracking/data', {
    method: 'get',
    params: params
  });
}

/**
 * 含矾各个参数的分位点
 * @param params
 * @returns {Promise<any>}
 */
export async function getScoreQuntile(params) {
  return request('/api/hanfan/hanFanParamDist', {
    method: 'get',
    params
  })
}

export async function getAutoScore(params) {
  return request('/api/hanfan/autoScore',{
    method: 'get',
    params: params
  });
}
